/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.kaaction.common.persistence.DataEntity;

/**
 * 运营内容Entity
 * @author huanghaiming
 * @version 2017-07-03
 */
public class OperationContent extends DataEntity<OperationContent> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String photo;		// 图片
	private String sort;		// 排序
	private String isShow;		// 是否展示
	private String displayBit;		// 展示位置
	private String description;		// 商品详情
	private String simpleDescription;		//描述
	private String tagName;		// 标签名称
	private String productId;		// 商品Id
	private Date startDate;		// 开始时间
	private Date endDate;		// 结束时间
	private String[] tag;		//标签集合
	private String opesubId;		
	private String opeSubtitle;		
	private String opecontId;		// 内容
	private String opecontTitle;		// 内容名称
	
	private String flag;
	
	public OperationContent() {
		super();
	}

	public OperationContent(String id){
		super(id);
	}

	@Length(min=0, max=64, message="标题长度必须介于 0 和 64 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}
	
	@Length(min=0, max=255, message="排序长度必须介于 0 和 255 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=3, message="是否展示长度必须介于 0 和 3 之间")
	public String getIsShow() {
		return isShow;
	}

	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}
	
	@Length(min=0, max=3, message="展示位置长度必须介于 0 和 3 之间")
	public String getDisplayBit() {
		return displayBit;
	}

	public void setDisplayBit(String displayBit) {
		this.displayBit = displayBit;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getSimpleDescription() {
		return simpleDescription;
	}

	public void setSimpleDescription(String simpleDescription) {
		this.simpleDescription = simpleDescription;
	}

	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String[] getTag() {
		return tag;
	}

	public void setTag(String[] tag) {
		this.tag = tag;
	}

	public String getOpesubId() {
		return opesubId;
	}

	public void setOpesubId(String opesubId) {
		this.opesubId = opesubId;
	}

	public String getOpeSubtitle() {
		return opeSubtitle;
	}

	public void setOpeSubtitle(String opeSubtitle) {
		this.opeSubtitle = opeSubtitle;
	}

	public String getOpecontId() {
		return opecontId;
	}

	public void setOpecontId(String opecontId) {
		this.opecontId = opecontId;
	}

	public String getOpecontTitle() {
		return opecontTitle;
	}

	public void setOpecontTitle(String opecontTitle) {
		this.opecontTitle = opecontTitle;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}
	
	
}